/// <reference types="node" />
/// <reference types="node" />
import { GithubReleaseData, GithubRepoFile, RepoPath } from '../types/Github';
import { HubSpotPromise } from '../types/Http';
declare global {
    var githubToken: string;
}
export declare function fetchRepoReleaseData(repoPath: RepoPath, tag?: string): HubSpotPromise<GithubReleaseData>;
export declare function fetchRepoAsZip(zipUrl: string): HubSpotPromise<Buffer>;
export declare function fetchRepoFile<T = Buffer>(repoPath: RepoPath, filePath: string, ref: string): HubSpotPromise<T>;
export declare function fetchRepoFileByDownloadUrl(downloadUrl: string): HubSpotPromise<Buffer>;
export declare function fetchRepoContents(repoPath: RepoPath, path: string, ref?: string): HubSpotPromise<Array<GithubRepoFile>>;
